<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.psl.model.userlogin" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/assets/css/text.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/main.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/content.css" rel="stylesheet" type="text/css">
    <script language="javascript" src="/assets/js/common.js"></script>
    <script language="javascript" src="/assets/js/general.js"></script>
    <script language="JavaScript" type="text/JavaScript">
    </script>
    <style>
        #title {
            width: 92%;
            border: 0px;
            margin-bottom: 10px;
        }

        #title td {
            text-align: center;
            height: 20px;
            line-height: 150%
        }

        #title div {
            background-image: url(/assets/img/dot_02.gif);
            background-position: left top;
            background-repeat: no-repeat;
            margin: 0 auto;
            padding-left: 20px;
            text-align: left;
            width: 10%;
            font-size: 15px;
            font-weight: bold;
            color: #CC0000;
            letter-spacing: 2px;
        }
    </style>
</head>
<body>

<table cellspacing="0" cellpadding="0" id="title" align="center">
    <tbody>
    <tr>
        <td nowrap="nowrap">
            <div> 机加工车间工人计件统计表</div>
        </td>
    </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="0" class="datalist" align="center">
    <tbody>
    <tr>
        <td colspan="15" height="45"><input type="button" value="打印" class="nobtn" onclick="window.print();">
        </td>
    </tr>
    <tr>
        <th align="center" colspan="4">操作</th>
        <th height="25" align="center">序号</th>
        <th height="25" align="center">编号</th>
        <th align="center">工人姓名</th>
        <th align="center">毛坯名称</th>
        <th align="center">规格</th>
        <th align="center">领料数量</th>
        <th align="center">领料时间</th>
        <th align="center">完成数量</th>
        <th align="center">工序</th>
        <th align="center">完成时间</th>
        <th align="center">结余</th>
    </tr>
    <tr>
        <form action="/wxAdd.do" method="post">
            <td align="center" colspan="5"><input type="submit" value="保存" class="nobtn"/></td>
            <td align="center"><input type="text" name="h_id" value="" class="nobtn"/></td>
            <td align="center"><input type="text" name="h_area" value="" class="nobtn"></td>
            <td align="center"><input type="text" name="h_name" value="" class="nobtn"/></td>
            <td align="center"><input type="text" name="h_size" value="" class="nobtn"/></td>
            <td align="center"><input type="text" name="h_send" value="" class="nobtn"/></td>
            <td align="center"><input type="date" name="h_sendtime" value="" class="nobtn"/></td>
            <td align="center"><input type="text" name="h_receipt" value="" class="nobtn"/></td>
            <td align="center"><input type="text" name="gx" value="" class="nobtn"/></td>
            <td align="center"><input type="date" name="h_receipttime" value="" class="nobtn"/></td>
            <td align="center"></td>
        </form>
    </tr>
    <c:forEach items="${ship}" var="wm">
        <tr>
            <form name="form${wm.id}" action="/wxupd.do" method="post">
                <td align="center" colspan="2">
                    <a href="/wxdetail.do?id=${wm.id}"><img src="/assets/img/view.gif"> </a>
                    <a href="/wxdel.do?id=${wm.id}"><img src="/assets/img/icodelete.gif"> </a>
                </td>
                <input type="hidden" name="id" value="${wm.id}">
                <td colspan="2" align="center"><input type="submit" value="修改" class="nobtn"></td>
                <td align="center">${wm.id}
                </td>
                <td align="center">${wm.h_id}
                </td>
                <td align="center">${wm.h_area}
                </td>
                <td align="center">${wm.h_name}
                </td>
                <td align="center">${wm.h_size}
                </td>
                <td align="center">${wm.h_send}
                </td>
                <td align="center">${wm.h_sendtime}
                </td>
                <td align="center"><input type="text" name="h_receipt"
                                          value="${wm.h_receipt}" class="nobtn"/></td>
                <td align="center">${wm.gx}</td>
                <td align="center">${wm.h_receipttime}</td>
                <td align="center">${wm.h_send-wm.h_receipt}</td>
            </form>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>